import Mock from "mockjs";
let List = [];
export default {
  getStatisticalData: () => {
    for (let i = 0; i < 7; i++) {
      List.push(
        Mock.mock({
          苹果: Mock.Random.float(100, 8000, 0, 0),
          vivo: Mock.Random.float(100, 8000, 0, 0),
          oppo: Mock.Random.float(100, 8000, 0, 0),
          魅族: Mock.Random.float(100, 8000, 0, 0),
          三星: Mock.Random.float(100, 8000, 0, 0),
          小米: Mock.Random.float(100, 8000, 0, 0),
        })
      );
    }
    return {
      code: 20000,
      data: {
        videoData: [
          {
            name: "小米",
            value: 2999,
          },
          {
            name: "苹果",
            value: 5999,
          },
          {
            name: "vivo",
            value: 1500,
          },
          {
            name: "oppo",
            value: 1999,
          },
          {
            name: "魅族",
            value: 2200,
          },{
            name: "三星",
            value: 4500,
          },
        ],
        userData:[
          {
            date:'周一',
            new:50,
            active:200
          },
          {
            date:'周二',
            new:30,
            active:500
          },
          {
            date:'周三',
            new:40,
            active:300
          },
          {
            date:'周四',
            new:50,
            active:500
          },
          {
            date:'周五',
            new:50,
            active:1000
          },
          {
            date:'周六',
            new:20,
            active:900
          },
          {
            date:'周日',
            new:30,
            active:800
          },
        ],
        orderData:{
          date:['20231001','20231002','20231003','20231004','20231005','20231006','20231007'],
          data:List
        },
        tableData:[
          {
            date:new Date().toLocaleDateString(),
            name:'张三',
            address:'武汉'
          },
          {
            date:new Date().toLocaleDateString(),
            name:'李四',
            address:'上海'
          },
          {
            date:new Date().toLocaleDateString(),
            name:'王五',
            address:'深圳'
          },
          {
            date:new Date().toLocaleDateString(),
            name:'老六',
            address:'常州'
          },
          {
            date:new Date().toLocaleDateString(),
            name:'麻七',
            address:'黑龙江'
          },
          {
            date:new Date().toLocaleDateString(),
            name:'老八',
            address:'乌鲁木齐'
          },
          {
            date:new Date().toLocaleDateString(),
            name:'老八',
            address:'乌鲁木齐'
          },
          {
            date:new Date().toLocaleDateString(),
            name:'老八',
            address:'乌鲁木齐'
          }
        ]
      },
    };
  },
};
